package com.sugon.modules.sparepart.service;

import com.sugon.entity.MaterialBaseEntity;
import com.sugon.modules.sparepart.model.vo.CommonApproveParamVO;

/**
 * 备件领料单Manager
 *
 * @author YuXD
 * @since 2021-12-06
 */
public interface ISparepartMaterialBaseManager {

    /**
     * 备件领料单提交审核
     *
     * @param materialBase 领料单
     * @return
     */
    boolean commitApprove(MaterialBaseEntity materialBase);

    /**
     * 取消领料申请
     *
     * @param materialBase
     * @return
     */
    boolean cancel(MaterialBaseEntity materialBase);

    /**
     * 失效领料单
     *
     * @param materialBase
     * @return
     */
    boolean invalid(MaterialBaseEntity materialBase);

    /**
     * 审核领料或者完成当前领料节点任务
     *
     * @param approveParam
     * @return 返回重定向的地址
     */
    String check(CommonApproveParamVO approveParam);

}
